The System.Security.Cryptography.Pkcs.SignerInfo.CheckHash method verifies the data integrity of the CMS/PKCS #7 message signer information. System.Security.Cryptography.Pkcs.SignerInfo.CheckHash is a specialized method used in specific security infrastructure applications in which the subject uses the HashOnly member of the System.Security.Cryptography.Pkcs.SubjectIdentifierType enumeration when setting up a System.Security.Cryptography.Pkcs.CmsSigner object. System.Security.Cryptography.Pkcs.SignerInfo.CheckHash does not authenticate the signer information because this method does not involve verifying a digital signature. For general-purpose checking of the integrity and authenticity of CMS/PKCS #7 message signer information and countersignatures, use the System.Security.Cryptography.Pkcs.SignerInfo.CheckSignature(System.Boolean) or System.Security.Cryptography.Pkcs.SignerInfo.CheckSignature(System.Security.Cryptography.X509Certificates.X509Certificate2Collection,System.Boolean) methods.